package com.ben.chatroom.common.cocurrent;

import com.ben.chatroom.common.util.ThreadUtils;

import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author huangyijun
 */
public class FutureTaskScheduler {

  static ThreadPoolExecutor minPool = null;

  static {
    minPool = ThreadUtils.getMixedTargetThreadPool();
  }

  private FutureTaskScheduler() {

  }

  public static void add(Runnable task) {
    minPool.submit(task);
  }

}
